#ifndef __BC26103_H
#define	__BC26103_H
#include <stdio.h>
#include "main.h"
void BC26_Power(void);
void BC26_ATI_Status(void);
uint8_t BC26_Request_ICCID(void);
uint8_t BC26_Request_IMEI(void);
uint8_t BC26_Active_Net(void);
uint8_t Check_BC26_Net_Status(void);
void BC26_Check_Band(void);
uint8_t BC26_Check_CESQ(void);
int BC26_Register_Net_Status(void);
void BC26_PDPACT(void);
void BC26_CFUN(void);
uint8_t BC26_CSCON(void);
uint8_t BC26_COPS(void);
void	SendDataToNBModule(uint8_t	*buf,uint8_t	len);
#define	Uart_ReceBufLen		90
#define TRUE 1
#define FALSE 0
#if 1
#define 	SeverIpAddress 		"157.255.51.150"
#define 	UDPServerPort 	    "10000"
#else
#define 	SeverIpAddress 		"114.116.200.206"
#define 	ServerPort 			"8893"
#define 	UDPServerPort 	    "30913"
#endif
#define		NBLocalPort			"9983"
#define		TCP_Connection		1
#define		UDP_Connection		0
#define		BC26_DisableSleepMode		0
#define		BC26_EnableSleepMode		1
#define		ReceiveUdpDataMaxLen		40
int8_t CreatSocket(uint8_t type,uint8_t socketid,uint8_t*serveriP,uint8_t*serverport,uint8_t*localport);
uint8_t		SendDataToServer(uint8_t socketid,uint8_t*buffer,uint8_t	len);
uint8_t		ReceiveDataFromServer(uint8_t socketid,uint8_t*buffer);
uint8_t		CloseSocket(uint8_t	socketid);
uint8_t		BC26_ConfigSleepMode(uint8_t		mode);
int8_t		BC26_IntialAndCreatSocket(void);
void 		BC26_PowerStart(void);
#endif